/* * Customizing tufte.css * */

@import 'https://fonts.googleapis.com/css?family=Source+Sans+Pro:300,400,600,700';
@import 'https://fonts.googleapis.com/css?family=Source+Code+Pro';

@charset "UTF-8";

/* colors */
:root {
  --dark-blue: #002b36;
  --light-blue: #A7D5E8;
  --green: #8fada7;
  --gray: #A7A7A7;
  --pink: #E9AFA3;
  --yellow: #e9d968;
  --beige: #fdf6e3;
  --green-faint: #8fada750;
  --light-blue-faint: #A7D5E850;
  --pink-faint: #E9AFA350;
}

/* Tufte CSS styles */

body {
	font-family: 'Source Sans Pro', sans-serif;
	font-weight: 300;
	background-color: #ffffff;
	color: #222;
	counter-reset: li;
}

h1.title {
	font-weight: 700;
	font-family: 'Source Sans Pro', sans-serif;
	color: var(--green);
}

h1 {
	font-style: normal;
	font-family: 'Source Sans Pro', sans-serif;
	color: var(--green);
}

h2 {
	font-style: normal;
	font-family: 'Source Sans Pro', sans-serif;
	font-weight: 400;
	color: var(--green);
}

h3.subtitle {
	font-style: normal;
	color: var(--green);
}

h4 {
	font-style: normal;
	font-weight: 400;
	font-family: 'Source Sans Pro', sans-serif;
	margin-top: 1.5rem;
	margin-bottom: 0;
	line-height: 1;
}

h4.author,
h4.date {
	font-family: 'Source Sans Pro', sans-serif;
	font-weight: 300;
}

.numeral {
	font-family: "Source Sans Pro";
	font-weight: 300;
}

em {
	font-style: italic;
	font-weight: 300;
	font-family: "Source Sans Pro";
}

strong {
	font-style: bold;
	font-weight: 600;
	font-family: "Source Sans Pro";
}

.marginnote code,
.sidenote code {
	font-size: 1rem;
}

/* Code formatting */

@media screen and (max-width: 760px) {
	pre {
		width: 100%;
		font-size: 16px;
     	overflow-x: auto;
	}
}

code {
	font-family: 'Source Code Pro', Consolas, "Liberation Mono", Menlo, Courier, monospace;
	line-height: 1.6;
}

pre {
	background-color: #FFFFFF;
	border-color: #CCCCCC;
	border-style: solid;
	border-width: 1px;
    border-radius: 4px;
	overflow-x: auto;
 	padding: 1em;
}

pre.r {
	background-color: #F5F5F5;
	border-color: #CCCCCC
}

/* Exercise counter */

ol {
	/* Remove the default left padding */
	padding-left: 0;
}

ol>li {
	/* Create a positioning context */
	position: relative;
	/* Disable the normal item numbering */
	list-style: none;
	width: 90%;
	padding-top: 10px;
	padding-bottom: 10px;
	padding-right: 0;
	padding-left: 120px;
}

ol>li:before {
	/* Use the counter as content */
	content: "Exercise " counter(li)".";
	/* Increment the counter by 1 */
	counter-increment: li;
	position: absolute;
	color: var(--green);
	left: -0.5px;
	font-weight: bold;
}

ol ol {
	counter-reset: subitem;
}

ul ul {
  width: 100%;
}

.box {
	background-color: #a3c586;
	border-color: #CCCCCC;
	color: #FFFFFF;
	border-style: solid;
	border-width: 1px;
    border-radius: 4px;
	overflow-x: auto;
	margin-top: 1em;
	margin-bottom: 1em;
	width: 55%;
	text-align: center;
}
